package com.minutes.in.seconds.ui.screens;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.minutes.in.seconds.R;
import com.minutes.in.seconds.ui.event.SettingEventHandler;

public class SettingActivity extends Fragment {

	private View mAboutUs;
	
	private View mPolicy;
	
	private View mFeedback;
	
	private View mTerm;
	
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		View view = inflater.inflate(R.layout.activity_settings,
		        container, false);
		
		mAboutUs = view.findViewById(R.id.layoutAboutUs);
		mPolicy = view.findViewById(R.id.layoutPrivacyPolicy);
		mFeedback = view.findViewById(R.id.layoutFeedback);
		mTerm = view.findViewById(R.id.layoutTerm);
        
		SettingEventHandler eventHandler = new SettingEventHandler(this);
		mAboutUs.setOnClickListener(eventHandler);
		mPolicy.setOnClickListener(eventHandler);
		mFeedback.setOnClickListener(eventHandler);
		mTerm.setOnClickListener(eventHandler);
        
        return view;
	}

	public View getmAboutUs() {
		return mAboutUs;
	}

	public View getmPolicy() {
		return mPolicy;
	}

	public View getmFeedback() {
		return mFeedback;
	}

	public View getmTerm() {
		return mTerm;
	}
}
